package com.biz.primus.app.erpbridge.feign;

import com.biz.primus.commodity.vo.SyncBrandVo;
import com.biz.primus.commodity.vo.SyncCategoryVo;
import com.biz.primus.commodity.vo.SyncCommoditySpecVo;
import com.biz.primus.commodity.vo.SyncCommodityVo;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * DepotFeignClient
 *
 * @author JKLiues
 * @date 2017年11月17日
 */
@FeignClient(name = "service-commodity")
public interface CommodityFeignClient {

    @PostMapping("soa/categoryService/syncCategories")
    void syncCategories(@RequestBody List<SyncCategoryVo> syncCategoryVos);

    @PostMapping("soa/brandServic/syncBrands")
    void syncBrands(@RequestBody List<SyncBrandVo> syncBrandVos);

    @PostMapping("soa/commodityService/syncCommoditySepcs")
    void syncCommoditySepcs(@RequestBody List<SyncCommoditySpecVo> reqVos);

    @PostMapping("soa/commodityService/syncCommodities")
    void syncCommodities(@RequestBody List<SyncCommodityVo> reqVos);

}